Radar Host Communication library  2020.08.13
StatusCodes

General protocol status codes. More...

Macros

#define PROTOCOL_STATUS_OK   0x0000
 
#define PROTOCOL_STATUS_DEVICE_TIMEOUT   0x0001
 
#define PROTOCOL_STATUS_DEVICE_BAD_MESSAGE_START   0x0002
 
#define PROTOCOL_STATUS_DEVICE_BAD_ENDPOINT_ID   0x0003
 
#define PROTOCOL_STATUS_DEVICE_NO_PAYLOAD   0x0005
 
#define PROTOCOL_STATUS_DEVICE_OUT_OF_MEMORY   0x0006
 
#define PROTOCOL_STATUS_DEVICE_BAD_PAYLOAD_END   0x0007
 
#define PROTOCOL_STATUS_DEVICE_BAD_COMMAND   0xFFFF
 

Detailed Description

General protocol status codes.

Whenever the connected device receives a message with improper format it will reply with one of these status codes. The status codes will always be sent from endpoint 0.

Macro Definition Documentation

◆ PROTOCOL_STATUS_DEVICE_BAD_COMMAND

#define PROTOCOL_STATUS_DEVICE_BAD_COMMAND   0xFFFF

The command sent to endpoint 0 is not defined.

Definition at line 132 of file Protocol.h.

◆ PROTOCOL_STATUS_DEVICE_BAD_ENDPOINT_ID

#define PROTOCOL_STATUS_DEVICE_BAD_ENDPOINT_ID   0x0003

An endpoint with the requested ID is not present.

Definition at line 106 of file Protocol.h.

◆ PROTOCOL_STATUS_DEVICE_BAD_MESSAGE_START

#define PROTOCOL_STATUS_DEVICE_BAD_MESSAGE_START   0x0002

The start byte of the message was incorrect.

Definition at line 101 of file Protocol.h.

◆ PROTOCOL_STATUS_DEVICE_BAD_PAYLOAD_END

#define PROTOCOL_STATUS_DEVICE_BAD_PAYLOAD_END   0x0007

The message did not end with the expected sequence.

Definition at line 125 of file Protocol.h.

◆ PROTOCOL_STATUS_DEVICE_NO_PAYLOAD

#define PROTOCOL_STATUS_DEVICE_NO_PAYLOAD   0x0005

A message with no payload is not supported.

Definition at line 113 of file Protocol.h.

◆ PROTOCOL_STATUS_DEVICE_OUT_OF_MEMORY

#define PROTOCOL_STATUS_DEVICE_OUT_OF_MEMORY   0x0006

There is not enough memory to store the payload.

Definition at line 118 of file Protocol.h.

◆ PROTOCOL_STATUS_DEVICE_TIMEOUT

#define PROTOCOL_STATUS_DEVICE_TIMEOUT   0x0001

The message seemed to end, but more data was expected.

Definition at line 94 of file Protocol.h.

◆ PROTOCOL_STATUS_OK

#define PROTOCOL_STATUS_OK   0x0000

No error occurred.

Definition at line 91 of file Protocol.h.